feat: Support custom types (enums/structs) in topic0 encoding for Ethereum events#2902
feat: Support custom types (enums/structs) in topic0 encoding for Ethereum events#2902Gmin2 wants to merge 1 commit intosubquery:mainfrom
Conversation
stwiname
left a comment
There was a problem hiding this comment.
Hi @Gmin2, this isn't what were after.
The feature isn't just for generating/importing abis. It's for at runtime when calculating the hash so that in the project manifest where are tuples/structs/enums.
For some more direction, these functions would need to be updated to be able to use ABIs to convert the signatures, like you have done. https://github.com/subquery/subql-ethereum/blob/main/packages/node/src/utils/string.ts#L22-L44
|
Hey @stwiname i have made a commit in repo subquery/subql-ethereum@main...MeshPort-Labs:subql-ethereum:feat/runtime-abi |
|
@Gmin2, this is looking much better. I think for solving the dictionary issue, it would be best to resolve the filters when the project loads so that the updated filters are available everywhere. If you create a PR with that work then i can provide more feedback |
|
Hey @stwiname just made the pr subquery#397 take a look at that |
Description
uint8and struct types to tuple format before keccak256 hashingFixes #1772
Type of change
Please delete options that are not relevant.
Checklist